package com.edfu.core.commons.persistence.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.edfu.core.identitymgt.persistence.entity.UserEntity;

@Entity
@Table(name="deleted_notifications")
public class DeletedNotificationsEntity {
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private long id;
	
	@ManyToOne
	@JoinColumn(name = "user_id", nullable = false)
	private UserEntity user;
	
	@ManyToOne
	@JoinColumn(name = "interests_notifications_id", nullable = false)
	private InterestsNotificationEntity interestsNotification;
	
	@Column(name = "deletedOn", nullable = false)
	private long deletedOn;

	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}

	public UserEntity getUser() {
		return user;
	}
	public void setUser(UserEntity user) {
		this.user = user;
	}
	
	public InterestsNotificationEntity getInterestsNotification() {
		return interestsNotification;
	}
	public void setInterestsNotification(
			InterestsNotificationEntity interestsNotification) {
		this.interestsNotification = interestsNotification;
	}

	public long getDeletedOn() {
		return deletedOn;
	}
	public void setDeletedOn(long deletedOn) {
		this.deletedOn = deletedOn;
	}	

}
